using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdWaybillQueryNotifyRsp;
using ExpressesClass.BestApi.Utils;
using System;

namespace ExpressesClass.BestApi.kdWaybillQueryNotifyReq
{
    public class KdWaybillQueryNotifyReq : BaseRequest
    {
		public string printSite { get; set; }
		public string printMan { get; set; }
		public Auth auth { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_WAYBILL_QUERY_NOTIFY";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdWaybillQueryNotifyRsp)) as KdWaybillQueryNotifyRsp;
           }
           return JsonParser.jsonToObj<KdWaybillQueryNotifyRsp>(rsp);
        }


    }
}